<?php
require_once "core-application/class.index.php";
require_once "core-application/core/class.tamplate.php";

$page = ( ! empty($_GET['page'])) ? trim($_GET['page']) : 'home';

$Index = new index;

$content = $Index -> getContent($page);

$data['IndexTitle'] = $content['title'];
$data['IndexContent'] = $content['content'];
$data['projectName'] = $Index::projectname;

$View = new Views('templates/index.temp.html', $data);
$View -> showView();
?>
